package com.pap.obj.vo.page;

import java.io.Serializable;
import java.util.List;

import com.pap.obj.vo.utils.collection.CollectionUtilss;

/**
 * ClassName : PaginationVO <br/>
 * Function : 分页实体类VO. <br/>
 * Reason : 分页实体类VO. <br/>
 * Date : 2017年7月18日 下午1:23:31 <br/>
 * 
 * @author : alexgaoyh <br/>
 * @version : 1.1 <br/>
 * @since : JDK 1.6 <br/>
 * @see
 */

public class PaginationVO<T> implements Serializable {

	/**
	 * serialVersionUID :
	 */
	private static final long serialVersionUID = 1L;
	
	public PaginationVO() {
		this.total = 0;
		this.rows = CollectionUtilss.newArrayList();
	}

	public PaginationVO(int total, List<T> rows) {
		this.total = total;
		this.rows = rows;
	}

	private int total;

	private List<T> rows;

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

}
